package cn.net.msg.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import cn.net.msg.dao.FindDao;
import cn.net.msg.model.TbFavourite;
import cn.net.msg.model.TbMood;
import cn.net.msg.service.base.Order;

@Component("findService")
public class FindService {

    @Resource(name="findDao")
    private FindDao dao;

    @Transactional
    public List<TbMood> getPopMoodForList(int firstIndex,
            int maxResult, Order order, String propertyName){
        return dao.getPopMoodForList(firstIndex, maxResult, order, propertyName);
    }

    @Transactional
    public List<TbFavourite> getPopFavouriteForList(int firstIndex,
            int maxResult){
        return dao.getPopFavouriteForList(firstIndex, maxResult);
    }
}
